/**
 * Created by KMY on 15-12-25.
 */
(function() {
    require.config({
        baseUrl: 'js',
        paths: {
            // "jquery":["http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min","lib/jquery.min"],
            "jquery": "lib/jquery.min",
            "bootstrap": "lib/bootstrap",     
            'jquery.cookie': 'plugin/jquery.cookie',
            "loader":'plugin/loader',
            "intro": "plugin/intro"
        },
        shim: {
            "bootstrap": ['jquery'],
            "loader": ['jquery']
        }
    });
    //按需加载登录模块，若cookie存在则可去掉这一模块，暂时未设置cookie因此为1
    
            
            require(['jquery','helper/tools','login','translate','pageReading','chooseBook','vocabularyBook'], function($,tools, login,translate,pageReading,chooseBook,vocabularyBook) {
                // 初始化：判断用户类型
                tools.init();
                // 显示页面预加载效果
                // tools.loading.show();
                pageReading.regBtn.init();
                translate.regBtn.init();
                chooseBook.init();
                chooseBook.regBtn.init();
                vocabularyBook.init();
                vocabularyBook.regBtn.init();
                login.init();
                login.view.choosePage();
                
            });
        
    
})();
